package com.kehutong.admin.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.util.List;

@Table("sys_role_item")
public class RoleItem extends Entity {
    private static final long serialVersionUID = 8591091141028290781L;

    protected RoleItem(String id) {
        super(id);
    }

    @Column(comment="角色编号")
    private String roleId;

    @Column(comment="菜单编号")
    private String menuId;

    @Column(comment="权限类型 1:无 2:全部 3：细分 ")
    private String type;

    @Column(length=Short.MAX_VALUE, comment="菜单列表")
    private List<String> menus;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<String> getMenus() {
        return menus;
    }

    public void setMenus(List<String> menus) {
        this.menus = menus;
    }
}
